package com.globalwave.system.service;

import com.globalwave.common.ArrayOrderList;
import com.globalwave.common.ArrayPageList;
import com.globalwave.system.entity.Organization;
import com.globalwave.system.entity.OrganizationCriterion;

public interface OrganizationService {
    
    public ArrayPageList<Organization> query(
            OrganizationCriterion organizationCriterion, 
            int pageIndex, 
            int pageSize,
            ArrayOrderList orderList) 
    throws Exception ;
    
    public Organization create(Organization organization, Long[] privilege_ids) throws Exception ;
    public void update(Organization organization, Long[] privilege_ids) throws Exception ;
    public void delete(Organization organization) throws Exception ;
    public void deleteAll(Long[] organization_ids) throws Exception ;
    public ArrayPageList<Organization> userBelongTo(Long userId) throws Exception ;
}
